<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>五彩导航栏</title>
</head>
<style>
    .nav a {
        display:inline-block;
        width: 120px;
        height: 58px;
        background-color: pink;
        line-height: 48px;
        text-decoration: none;
        text-align: center;
        color:white;
    }
    .nav .pic1 {
        background: url(images/pic1.png) no-repeat;
    }
    .nav .pic2 {
        background: url(images/pic2.png) no-repeat;
    }
    .nav .pic3 {
        background: url(images/pic3.png) no-repeat;
    }
    .nav .pic4 {
        background: url(images/pic4.png) no-repeat;
    }
    .nav .pic1:hover {
        background-image: url(images/pic4.png);
    }
    .nav .pic2:hover {
        background-image: url(images/pic3.png);
    }
    .nav .pic3:hover {
        background-image: url(images/pic2.png);
    }
    .nav .pic4:hover {
        background-image: url(images/pic1.png);
    }
</style>
<body>
  <div class="nav">
    <a href="#" class="pic1">五彩导航栏</a>
    <a href="#" class="pic2">五彩导航栏</a>
    <a href="#" class="pic3">五彩导航栏</a>
    <a href="#" class="pic4">五彩导航栏</a>
    
  </div>
    
</body>
</html>